import 'package:flutter/material.dart';

class AppConst {
  ///
  ///
  ///
  /// 是否是发布版本
  ///
  /// 修改这个,注意修改single => websocket的地址
  ///
  static const bool APP_IS_RELEASE = false;

  ///
  /// usertoken
  static const String KEY_user_token = "KEY_user_token";

  ///
  /// 是否是第一次登录
  ///
  static const String APP_IS_FIRST = "APP_IS_FIRST";

  ///
  /// 是否已经登录
  ///
  static const String APP_IS_LOGIN = "APP_IS_LOGIN";
}

class AppColor {
  static const Color mainColor = Color(0xff1476FE);
  static const Color green = Color(0xff1BAF82);
  static const Color red = Color(0xffF33E3F);
  static const Color yellow = Color(0xffFFB819);

  /// f9f9f9
  static const Color f9f9f9 = Color(0xfff9f9f9);
  static const Color ccc = Color(0xfffcccccc);

  /// a5a5a5
  static const Color fontgrey = Color(0xffa5a5a5);
  static const Color font666 = Color(0xff666666);
  static const Color font333 = Color(0xff333333);

  /// f3f3f3
  static const Color divigrey = Color(0xfff3f3f3);
}

class AppFont {
  static TextStyle textStyle(double fontszie,
      {FontWeight fontWeight = FontWeight.normal,
      Color color = AppColor.font333,
      TextDecoration decoration = TextDecoration.none}) {
    return TextStyle(
      fontSize: fontszie,
      color: color,
      fontWeight: fontWeight,
      decoration: decoration,
    );
  }
}
